<?php /* Smarty version Smarty-3.1.12, created on 2016-05-17 09:41:58
         compiled from "/home/weixincn86dwleoi1xmibn6cinm896/wwwroot/template/default/model/product_sort.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1960049476573a76e60f2894-75186596%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '252127fb7b9407bc7cccba2a5df63c06490d54db' => 
    array (
      0 => '/home/weixincn86dwleoi1xmibn6cinm896/wwwroot/template/default/model/product_sort.tpl',
      1 => 1441791080,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1960049476573a76e60f2894-75186596',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'productTreeCate' => 0,
    'volist' => 0,
    'seclist' => 0,
    'thirdlist' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_573a76e617c1a3_45726759',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_573a76e617c1a3_45726759')) {function content_573a76e617c1a3_45726759($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_truncate')) include '/home/weixincn86dwleoi1xmibn6cinm896/wwwroot/source/core/plugins/modifier.truncate.php';
?><ul class="sort">
  <?php  $_smarty_tpl->tpl_vars['volist'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['volist']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['productTreeCate']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['volist']->key => $_smarty_tpl->tpl_vars['volist']->value){
$_smarty_tpl->tpl_vars['volist']->_loop = true;
?>
  	<li class="layer1">
      <a href="<?php echo $_smarty_tpl->tpl_vars['volist']->value['url'];?>
" class="list_item"><?php echo $_smarty_tpl->tpl_vars['volist']->value['cname'];?>
</a>
      <div class="layer2" style="display:none;">
      	<ul>
        	<?php  $_smarty_tpl->tpl_vars['seclist'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['seclist']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['volist']->value['childcategory']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['seclist']->key => $_smarty_tpl->tpl_vars['seclist']->value){
$_smarty_tpl->tpl_vars['seclist']->_loop = true;
?>
         	  <li>
				<a href="<?php echo $_smarty_tpl->tpl_vars['seclist']->value['url'];?>
" class="list_item"><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['seclist']->value['cname'],20);?>
</a>
				<?php if (empty($_smarty_tpl->tpl_vars['seclist']->value['childcategory'])){?><?php }else{ ?>
				<div class="layer3" >
					<ul>
					<?php  $_smarty_tpl->tpl_vars['thirdlist'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['thirdlist']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['seclist']->value['childcategory']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['thirdlist']->key => $_smarty_tpl->tpl_vars['thirdlist']->value){
$_smarty_tpl->tpl_vars['thirdlist']->_loop = true;
?>
					<li>
						<a href="<?php echo $_smarty_tpl->tpl_vars['thirdlist']->value['url'];?>
" class="list_item"><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['thirdlist']->value['cname'],20);?>
</a>
					</li>
					<?php } ?>
					</ul>
				</div>
				<?php }?>
			  </li>
            <?php } ?>
        </ul>
      </div>
    </li>
  <?php } ?>   
</ul>

<script type="text/javascript">
$(".layer1").hover
(
	function()
	{   
		if($(this).find(".layer2 li").length > 0)
		{
			$(this).find(".layer2").stop().show();

		}
		$(this).addClass("change");
	},
	function()
	{
		$(this).find(".layer2").stop().hide();
		$(this).removeClass("change");
	}
);
</script><?php }} ?>